<!-- 订单 -->
<template>
    <div class="myorder">
        <div class="section-header">
            <h2 class="section-title">我的订单</h2>
            <p class="section-subtitle">查看您的购买记录</p>
        </div>
        <div class="empty-orders">
            <div class="empty-icon">📦</div>
            <h3>暂无订单</h3>
            <p>您还没有任何订单记录</p>
            <button class="btn-shop" @click="goToShop">去购物</button>
        </div>
    </div>
</template>

<script>
export default {
    name: 'myorder',
    methods: {
        goToShop() {
            // 跳转到商品页面
            window.location.hash = '#official';
        }
    }
}
</script>
<style scoped>
.myorder {
    text-align: center;
    padding: 40px 20px;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 300;
}

.empty-orders {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-orders h3 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.empty-orders p {
    font-size: 1rem;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.btn-shop {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .empty-orders {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}
</style>